package com.heima.user;


import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication
//@EnableDiscoveryClient//没用，作用是nacos注册和发现，pom文件已经导入坐标可以找到注册和发现地址
@MapperScan("com.heima.user.mapper")
//fegin远程调用,指定fegin接口在什么位置
@EnableFeignClients(basePackages = "com.heima.feign")
public class UserApplication {
    public static void main(String[] args) {
        SpringApplication.run(UserApplication.class,args);
    }
}
